import Vue from 'vue'

import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({

  state: {

    //这里放全局参数

    num:0,
	frame:false

  },

  mutations: {

    //这里是set方法

    setDemoValue(state,num){
            state.num = num
        },
	setframe(state,frame){
			state.frame.frame
        }
  },

    getters: {

    //get方法
        getDemoValue: state => state.num,
		 setframe: frame => state.frame

    },

  actions: {


  },

  modules: {


  }

})